package fr.umlv.m2.uwp2011.service.testLoyaute.impl;

import org.springframework.stereotype.Service;

import fr.umlv.m2.uwp2011.service.testLoyaute.User;
import fr.umlv.m2.uwp2011.service.testLoyaute.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3867625550912212182L;

	@Override
	public User findUser(String login, String password) {
		System.out.println("login : " + login);
		if(login.equals("etudiant")) {
			User user = new User();
			user.setLogin(login);
			user.setPassword(password);
			return user;
		}
		return null;
	}

}
